﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebServisArayuz.Master" AutoEventWireup="true"
    CodeBehind="SFMulkiIdareIslemleri.aspx.cs" Inherits="TakbisBilgiSorgu_v1.WebForm10"
    EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server"> 
<div id="divgvIl" runat="server" class="DivTasinmazIslemleriBloklar">

  <div class="DivTasinmazBlokIsim">İller</div>

<div class="DivExcell"><asp:Button ID="btnIlExceleYaz" runat="server" class="butons excelli" OnClick="btnIlExceleYaz_Click" TabIndex="9" Text="Excele Yaz"/></div>
  <div class="DivGrid">
      <asp:GridView ID="gvIl" CssClass="grids" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CellPadding="3" OnPageIndexChanging="gvIl_PageIndexChanging" OnRowCreated="gvIl_RowCreated"
            DataKeyNames="IlBilgiID" OnRowDataBound="gvIl_RowDataBound" OnSelectedIndexChanged="gvIl_SelectedIndexChanged">
            <Columns>
                <asp:CommandField HeaderText=" Seçim " ShowSelectButton="True" SelectText="Seç "
                    Visible="False" />
                <asp:TemplateField HeaderText="il ID">
                    <ItemTemplate>
                        <asp:Label ID="IlBilgiID" runat="server" Text='<%# Eval("IlBilgiID") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Adı">
                    <ItemTemplate>
                        <asp:Label ID="Ad" runat="server" Text='<%# Eval("Ad") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Aktif Mi">
                    <ItemTemplate>
                        <asp:Label ID="Aktifmi" runat="server" Text='<%# Eval("Aktifmi") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="gridsFooter" />
            <HeaderStyle CssClass="gridsHeader" />
            <PagerStyle CssClass="gridsPager" />
            <RowStyle CssClass="gridsTextColor" />
            <SelectedRowStyle CssClass="selectedRows" />
            <SortedAscendingCellStyle CssClass="hoverRows11111111" />
            <SortedAscendingHeaderStyle CssClass="hoverRows1111111" />
            <SortedDescendingCellStyle CssClass="hoverRows1111111111" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
  </div><div style="clear:both"></div>
  <asp:Button ID="btnIlceGetir" class="butons getirico" runat="server" Text="İlceleri Getir" TabIndex="2" OnClick="btnIlceGetir_Click" />
  <div style="clear:both"></div>
</div>

<div id="divgvIlce" runat="server" class="DivTasinmazIslemleriBloklar">
  <div class="DivBlokIsim"><asp:Label ID="lblSecilenIl" runat="server" Text=""></asp:Label></div> <div class="DivExcell"><asp:Button ID="btnIlceExceleYaz" runat="server" class="butons excelli" 
            OnClick="btnIlceExceleYaz_Click" TabIndex="9" Text="Excele Yaz" /></div>
  <div class="DivGrid">
      <asp:GridView ID="gvIlce" CssClass="grids" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CellPadding="3" OnPageIndexChanging="gvIlce_PageIndexChanging"
            OnRowCreated="gvIlce_RowCreated" DataKeyNames="IlceBilgiID" OnRowDataBound="gvIlce_RowDataBound"
            OnSelectedIndexChanged="gvIlce_SelectedIndexChanged">
            <Columns>
                <asp:CommandField HeaderText=" Seçim " ShowSelectButton="True" SelectText="Seç "
                    Visible="False" />
                <asp:TemplateField HeaderText="ilçe ID">
                    <ItemTemplate>
                        <asp:Label ID="IlceBilgiID" runat="server" Text='<%# Eval("IlceBilgiID") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Adı">
                    <ItemTemplate>
                        <asp:Label ID="Ad" runat="server" Text='<%# Eval("Ad") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Aktif Mi">
                    <ItemTemplate>
                        <asp:Label ID="Aktifmi" runat="server" Text='<%# Eval("Aktifmi") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="İl ID" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="IlID" runat="server" Text='<%# Eval("IlID") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="gridsFooter"/>
            <HeaderStyle  CssClass="gridsHeader"/>
            <PagerStyle CssClass="gridsPager"/>
            <RowStyle CssClass="gridsTextColor" />
            <SelectedRowStyle CssClass="selectedRows"/>
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
  </div>
    <div style="clear:both"></div>
    <asp:Button ID="btnKurumGetir" class="butons getirico" runat="server" Text="Kurum Getir" TabIndex="4"
            OnClick="btnKurumGetir_Click" />
  <div style="clear:both"></div>
</div>

<div id="divgvKurum" runat="server" class="DivTasinmazIslemleriBloklar">
  <div class="DivBlokIsim"><asp:Label ID="lblSecilenIlce" runat="server" Text=""></asp:Label></div> <div class="DivExcell"><asp:Button ID="btnKurumExceleYaz" runat="server" class="butons excelli" 
            OnClick="btnKurumExceleYaz_Click" TabIndex="9" Text="Excele Yaz"/></div>
  <div class="DivGrid">
      <asp:GridView ID="gvKurum" CssClass="grids" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CellPadding="3" OnPageIndexChanging="gvKurum_PageIndexChanging" OnRowCreated="gvKurum_RowCreated" OnRowDataBound="gvKurum_RowDataBound" DataKeyNames="KurumBilgiID"
            OnSelectedIndexChanged="gvKurum_SelectedIndexChanged">
            <Columns>
                <asp:CommandField HeaderText=" Seçim " ShowSelectButton="True" SelectText="Seç "
                    Visible="False" />
                <asp:TemplateField HeaderText="Kurum ID">
                    <ItemTemplate>
                        <asp:Label ID="KurumBilgiID" runat="server" Text='<%# Eval("KurumBilgiID") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Adı">
                    <ItemTemplate>
                        <asp:Label ID="Ad" runat="server" Text='<%# Eval("Ad") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Aktif Mi">
                    <ItemTemplate>
                        <asp:Label ID="Aktifmi" runat="server" Text='<%# Eval("Aktifmi") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="İlçe ID" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="IlceID" runat="server" Text='<%# Eval("IlceID") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="gridsFooter"/>
            <HeaderStyle  CssClass="gridsHeader"/>
            <PagerStyle CssClass="gridsPager"/>
            <RowStyle CssClass="gridsTextColor" />
            <SelectedRowStyle CssClass="selectedRows"/>
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
  </div>
  <div style="clear:both"></div>
<asp:Button ID="btnMahalleGetir" class="butons getirico" runat="server" Text="Mahalle Getir"
            TabIndex="5" OnClick="btnMahalleGetir_Click" />
 <div style="clear:both"></div>
</div>

<div id="divgvMahalle" runat="server" class="DivTasinmazIslemleriBloklar">
  <div class="DivBlokIsim"><asp:Label ID="lblSecilenKurum" runat="server" Text=""></asp:Label></div> <div class="DivExcell"><asp:Button ID="btnMahalleExceleYaz" runat="server" class="butons excelli"  
            TabIndex="9" Text="Excele Yaz" onclick="btnMahalleExceleYaz_Click" /></div>
  <div class="DivGrid">
      <asp:GridView ID="gvMahalle" CssClass="grids" runat="server" AllowPaging="True"
            AutoGenerateColumns="False" CellPadding="3" OnPageIndexChanging="gvMahalle_PageIndexChanging" OnRowCreated="gvMahalle_RowCreated"
            OnRowDataBound="gvMahalle_RowDataBound" DataKeyNames="MahalleBilgiID">
            <Columns>
                <asp:CommandField HeaderText=" Seçim " ShowSelectButton="True" SelectText="Seç "
                    Visible="False" />
                <asp:TemplateField HeaderText="Mahalle ID">
                    <ItemTemplate>
                        <asp:Label ID="MahalleBilgiID" runat="server" Text='<%# Eval("MahalleBilgiID") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Adı">
                    <ItemTemplate>
                        <asp:Label ID="Ad" runat="server" Text='<%# Eval("Ad") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tip">
                    <ItemTemplate>
                        <asp:Label ID="MahKoyTip" runat="server" Text='<%# Eval("MahKoyTip") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Aktif Mi">
                    <ItemTemplate>
                        <asp:Label ID="Aktifmi" runat="server" Text='<%# Eval("Aktifmi") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Kurum ID" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="KurumID" runat="server" Text='<%# Eval("KurumID") %>'>
                        </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="gridsFooter"/>
            <HeaderStyle  CssClass="gridsHeader"/>
            <PagerStyle CssClass="gridsPager"/>
            <RowStyle CssClass="gridsTextColor" />
            <SelectedRowStyle CssClass="selectedRows"/>
        </asp:GridView>
  </div>
  <div style="clear:both"></div>
</div>
</form>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <div class="sayfa_adi">İdari işlemler /Mülki İdari İşlemler</div>
</asp:Content>
